package com.gjy.ignite.hello;

import org.apache.ignite.Ignition;
import org.apache.ignite.client.IgniteClient;
import org.apache.ignite.configuration.ClientConfiguration;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-08-06 21:29:08
 */
public class PingTest {

    public static void main(String[] args) {
        ClientConfiguration configuration = new ClientConfiguration().setAddresses("localhost:10800");
        try (IgniteClient client = Ignition.startClient(configuration)) {
            // client.getOrCreateCache("hello").put("K", "V");

            Object o = client.getOrCreateCache("hello").get("K");
            System.out.println("o = " + o);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
